import { Injectable } from '@angular/core';
import { Headers, Http } from '@angular/http';
import { HttpClient, HttpParams } from '@angular/common/http';
@Injectable()
export class aboutService {
  constructor(
    private http: Http
  ) { }
 
  accounturl = 'https://account.arktao.com'
  
  private headers = new Headers({ 'Content-Type': 'application/json' });
  SubmitMessage(Content,contactdetails): Promise<any> {
    const url = `${this.accounturl}/open/SubmitMessage`;
    return this.http.post(url, {FK_UserGuid:"c838af15-d7a9-424a-b096-a781aa657d1d",Content:Content,contactdetails:contactdetails}, { headers: this.headers })
        .toPromise()
        .then(res => { return res.json() })
  }
 
}